import { Nav, NavLink } from "@/src/components/Nav";
import { layoutType } from "@/src/types";
import React from "react";

export const dynamic = "force-dynamic";

const AdminLayout = ({ children }: layoutType) => {
  return (
    <>
      <Nav>
        <NavLink href="/admin">Dashboard</NavLink>
        <NavLink href="/admin/products">Products</NavLink>
        <NavLink href="/admin/users">Customer</NavLink>
        <NavLink href="/admin/orders">Products</NavLink>
      </Nav>
      <div className="container my-6">{children}</div>
    </>
  );
};

export default AdminLayout;
